<script language="JavaScript">
function checkPassword(pwd)
{
  if(isCharsInBag(pwd,"0123456789"))
	{
	  alert("<%= message.getMessageDesc("VALUE_MUST_NOT_BE_ALL_NUMBER",label.getLabelName("L_Password",false)) %>");
		return false;
	}
  if(isCharsInBag(pwd,"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"))
	{
	  alert("<%= message.getMessageDesc("VALUE_MUST_NOT_BE_ALL_CHAR",label.getLabelName("L_Password",false)) %>");
		return false;
	}
  if(!isCharsInBag(pwd.charAt(0),"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"))
	{
	  alert("<%= message.getMessageDesc("FIRST_MUST_BE_CHAR",label.getLabelName("L_Password",false)) %>");
		return false;
	}
  if(pwd.length < 6)
  {
	  alert("<%= message.getMessageDesc("LENGTH_MUST_MORETHAN",label.getLabelName("L_Password",false), "6") %>");
		return false;
  }
  
  return true;
}
</script>
